home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / text0184.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  577 b   |  24 lines

  1. >
  2. >What I want to do is use AmosPro to create a file in Ram called Datapath
  3. >and then execute it with Amiga dos.
  4. >If you look at the example below it should create a file called Datapath
  5. >containing "CD workbench:data".
  6. >
  7. >a$="workbench:data"
  8. >C$="CD "
  9. >A$=C$+A$
  10. >Open Out 3,"Ram:Datapath"
  11. >Print #3,A$
  12. >Print #3,Chr$(13)
  13. >Close 3
  14.  
  15. If you write your info to a bank and Bsave from it you eliminate the
  16. extra characters.  But in this case, how about quick & dirty with the
  17. CLI echo command?
  18.  
  19. A$="CD workbench:data"
  20. exec "echo "+A$+" >ram:Datapath"  :Rem Keep those spaces
  21.  
  22. Mike
  23.  
  24.